<?php
require_once './header.php';
require_once './core/sql.php';
$sql = new SqlS();
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="initial-scale=1.0,width=device-width,user-scalable=0,maximum-scale=1.0"/>
    <title>自定义报名表</title>
    <link rel="stylesheet" href="./css/base.css">
    <link rel="stylesheet" href="./css/index.css">
    <link rel="stylesheet" href="./admin/css/jquery.xctips.css"/>
    <script>
        function adapte() {//适配
            var designWidth = 1080, rem2px = 100;
            document.documentElement.style.fontSize = window.innerWidth / designWidth * rem2px + "px";
        }
        adapte();
    </script>
</head>
<style>
    input {
        border-color: #878787;
        border-style: solid;
        border-top-width: 0px;
        border-right-width: 0px;
        border-bottom-width: 1px;
        border-left-width: 0px;
    }

    html, body {
        height: auto;
        width: auto;
        overflow: hidden;
    }
</style>
<?php
if (isset($_SESSION['title'])) {
    $title = $_SESSION['title'];
} else {
    $title = '';
}
?>
<body>
<div class="make-form">
    <p>报名表标题</p>
    <div class="form-name">
        <p class="fs36">
            <input id="tbTitle" type="text" placeholder="例：小小主持人课程开始报名啦，在线报名免费体验一节课！" value="<?= $title ?>">
        </p>
    </div>
    <p>请选择内容</p>
    <ul class="lists flex">
        <?php
        $sql->showQuestions();
        ?>
        <li><a href="#" onclick="ajax_addDiyQuestion()">+自定义问题</a></li>
    </ul>
    <div class="btn">
        <button onclick="ajax_selectCourse(null, null)">
            <a href="javascript:;">预览报名表</a>
        </button>
    </div>
</div>
<script src='./script/jquery.js'></script>
<script src='./script/index.js'></script>
<script></script>
</body>
</html>
<?php
require_once './footer.php';
?>
